<%-- 
    Document   : homepage
    Created on : Mar 23, 2015, 8:18:54 AM
    Author     : PHATNBSE61057
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <c:set var="books" value="${sessionScope.LISTBOOK}"/>        
        <table border="">
            <thead>
                <tr>
                    <th>BOOK ID</th>
                    <th>BOOK NAME</th>
                    <th>BOOK FORMAT</th>
                    <th>BOOK PAGES</th>
                    <!--<th>BOOK THUMB</th>-->
                </tr>
            </thead>
            <tbody>
                <c:forEach var="BOOK" items="${books}">
                    <tr>
                        <td>${BOOK.username}</td>
                        <td>${BOOK.bookingTime}</td>
                        <td>${BOOK.statusID}</td>
                        <td>${BOOK.totalPrice}</td>
                    </tr>
                </c:forEach>
            </tbody>
        </table>
    </body>
</html>
